home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 14 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: nntp-sc.barrnet.net!infoserv!billcorn!billcorn
  2. Message-ID: <766495d2712731t127@billcorn.infoserv.com>
  3. Date: Sun, 31 Dec 1995 07:15:24 -0800
  4. From: "Bill Cornutt" <billcorn@infoserv.com>
  5. X-Mailer: Infoserv Connection's WinMail
  6. Subject: Re: Turbo C
  7. Newsgroups: comp.lang.c
  8. References: <4c3r40$5uv@soap.news.pipex.net>
  9.  
  10. ----------
  11. >Help!!
  12. >
  13. >I am trying to get a float from a string using the stdlib.h function
  14. >'atof'.  However, when it calls this function I get the message
  15. >'scanf: floating point formats not linked
  16. >Abnormal program termination'
  17. >
  18. >Has anyone had this problem before.
  19. >
  20. >Nigel Merritt (fab35@dial.pipex.com / nigelm@dial.pipex.com)
  21. >
  22. >
  23.  
  24. Does the message mean that a library was not linked into the
  25. program?  Could it have something to do with the numeric 
  26. coprocessor?  Have you told the compiler you have a coprocessor
  27. and you really don't?
  28.  
  29. The way I would attack the problem would be to write a VERY short
  30. program that just used this instruction.  Try to input data to
  31. the function like you are using in the real program and see if it
  32. still fails.  
  33.  
  34.    ---------
  35.    Bill Cornutt
  36.    billcorn@infoserv.com
  37.    Located in Ione California USA.
  38.    A small town in Northern California.
  39.    Sitting against the foothills of the Mother Lode.
  40.    ----------------------------------------------------
  41.